<?php

  /**
  * QuickSkin Extension regex
  * Regular Expression String Replace
  *
  * Usage Example:
  * Content:  $template->assign('NAME', '*My Document*');
  * Template: Document Name: {regex:NAME,'/[^a-z0-9]/i','_'}
  * Result:   Document Name: _My_Document_
  *
  * @author Philipp v. Criegern philipp@criegern.de
  *
  * CVS ID: $Id: smarttemplate_extension_regex.php,v 1.2 2006/04/30 19:56:04 endelwar Exp $
  */
  function quickskin_ext_regex ( $param, $pattern, $replace )
  {
    return preg_replace( $pattern, $replace, $param );
  }

?>
